package request

// 添加课程
type AddCourseReq struct {
	CourseTypeId int64   `json:"course_type_id" form:"course_type_id" binding:"required"`
	MemberPrice  float64 `json:"member_price" form:"member_price" binding:"required"`
	Price        float64 `json:"price" form:"price" binding:"required"`
	Author       string  `json:"author" form:"author" binding:"required"`
	Title        string  `json:"title" form:"title" binding:"required"`
	Desc         string  `json:"desc" form:"desc" binding:"required"`
	CoverUrl     string  `json:"cover_url" form:"cover_url" binding:"required"`
	PayUrl       string  `json:"pay_url" form:"pay_url" binding:"required"`
	Catalogue    string  `json:"catalogue" form:"catalogue" binding:"required"`
}

// 课程列表
type GetCourseListReq struct {
	UserId       int64 `json:"user_id" form:"user_id"`
	CourseTypeId int64 `json:"course_type_id" form:"course_type_id"`
	Page         int64 `json:"page" form:"page"`
	PageSize     int64 `json:"page_size" form:"page_size"`
}

// 课程详情
type GetCourseDetailReq struct {
	CourseId int64 `json:"course_id" form:"course_id" binding:"required"`
}
